package com.hksj.jetlinks.serialize;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class ClassDescriptions {
    private static final Map<Class<?>, ClassDescription> CACHE = new ConcurrentHashMap();

    public ClassDescriptions() {
    }

    public static ClassDescription getDescription(Class<?> type) {
        return (ClassDescription)CACHE.computeIfAbsent(type, ClassDescription::new);
    }
}